﻿<Serializable()> _
Public Class Enotaria

#Region "           Atributos                       "
    Private _idNotaria As Int32
    Private _descNotaria As String
    Private _nomContacto As String
    Private _apePaterContac As String
    Private _apeMaterContac As String
    Private _telefono As String
    Private _estado As String
    Private _desEstado As String
    Private _idUsuario As Int32
#End Region

#Region "           Propiedades                     "
    Public Property idNotaria() As Int32
        Get
            Return _idNotaria
        End Get
        Set(ByVal value As Int32)
            _idNotaria = value
        End Set
    End Property
    Public Property descNotaria() As String
        Get
            Return _descNotaria
        End Get
        Set(ByVal value As String)
            _descNotaria = value
        End Set
    End Property
    Public Property nomContacto() As String
        Get
            Return _nomContacto
        End Get
        Set(ByVal value As String)
            _nomContacto = value
        End Set
    End Property
    Public Property apePaterContac() As String
        Get
            Return _apePaterContac
        End Get
        Set(ByVal value As String)
            _apePaterContac = value
        End Set
    End Property
    Public Property apeMaterContac() As String
        Get
            Return _apeMaterContac
        End Get
        Set(ByVal value As String)
            _apeMaterContac = value
        End Set
    End Property
    Public Property telefono() As String
        Get
            Return _telefono
        End Get
        Set(ByVal value As String)
            _telefono = value
        End Set
    End Property
    Public Property estado() As String
        Get
            Return _estado
        End Get
        Set(ByVal value As String)
            _estado = value
        End Set
    End Property
    Public Property desEstado() As String
        Get
            Return _desEstado
        End Get
        Set(ByVal value As String)
            _desEstado = value
        End Set
    End Property
    Public Property idUsuario() As Int32
        Get
            Return _idUsuario
        End Get
        Set(ByVal value As Int32)
            _idUsuario = value
        End Set
    End Property
#End Region

#Region "           Propiedades Avanzadas           "
    Public ReadOnly Property NombresCompletos() As String
        Get
            Return nomContacto & " " & apePaterContac & " " & apeMaterContac
        End Get
    End Property
#End Region

#Region "           Contructores                    "
    Public Sub New()

    End Sub
    Public Sub New(ByVal idNotaria As Int32, ByVal descNotaria As String)
        Me.idNotaria = idNotaria
        Me.descNotaria = descNotaria
    End Sub
    Public Sub New(ByVal idNotaria As Int32, ByVal descNotaria As String, ByVal nomContacto As String, ByVal apePaterContac As String, _
                    ByVal apeMaterContac As String, ByVal telefono As String, ByVal estado As String)
        Me.idNotaria = idNotaria
        Me.descNotaria = descNotaria
        Me.nomContacto = nomContacto
        Me.apePaterContac = apePaterContac
        Me.apeMaterContac = apeMaterContac
        Me.telefono = telefono
        Me.estado = estado
        Me.desEstado = IIf(estado = 1, "HABILITADO", "DESHABILITADO")
    End Sub
#End Region

End Class
